package com.xc.hotelmgr.consumermq.service.mybatis.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xc.hotelmgr.consumermq.mapper.OpRpGroupMapper;
import com.xc.hotelmgr.consumermq.pojo.mq.HistStoreOurPlanRP;
import com.xc.hotelmgr.consumermq.pojo.mybatis.OpRPGroup;
import com.xc.hotelmgr.consumermq.service.mybatis.OpRPGroupService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("opRPGroupService")
public class OpRPGroupServiceImpl extends ServiceImpl<OpRpGroupMapper, OpRPGroup> implements OpRPGroupService {
    @Override
    public List<OpRPGroup> selectByStoreHotel(Integer storeId, Long hotelId) {

        return  baseMapper.selectByStoreHotel(storeId,hotelId);
    }

    @Override
    public List<HistStoreOurPlanRP> selectHchsoByHotelId(Long hotelId) {
        return baseMapper.selectHchsoByHotelId(hotelId);
    }

    @Override
    public List<Long> selectByHotelId(Long hotelId) {

        return baseMapper.selectByHotelId(hotelId);
    }

    @Override
    public List<HistStoreOurPlanRP> selectByStoreHotelId(Integer storeId, Long hotelId) {

        return baseMapper.selectByStoreHotelId(storeId,hotelId);
    }
}
